<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>登录页面</title>
        <link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css"/>
        <link type="text/css" rel="stylesheet" href="/static/css/auth.css"/>

    </head>
    <body>
        <div class="container">
            <div class="row">
                <div class="col-4 offset-4">
                    <div class="login-form shadow-lg p-3 mb-5 bg-white rounded">
                        <h2 class="text-center">用户登陆</h2>
                        <hr/>
                        <form action="/auth/login/" method="POST">

                            <div class="mb-3 mt-3">
                                <!-- <label>用户名：</label> -->
                                <input class="form-control form-control-sm" placeholder="用户名" name="username" type="text" value="{{ .form.Username }}">
                            </div>
                            <div class="mb-3 mt-3">
                                <!-- <label>密码：</label> -->
                                <input class="form-control form-control-sm" placeholder="密码" name="password" type="password">
                            </div>
                            {{ if .errors }}
                            <p class="text-danger">{{ index .errors.default 0 }}</p>
                            {{ end }}
                            <div class="d-grid">
                                <input class="btn btn-primary btn-block" type="submit" value="登录">
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>            
    </body>
</html>